package com.shopping.product;

import java.util.Date;
import java.util.List;

public interface ProductDAO {
	public List<Product> getProducts(); 
	
	public List<Product> getProducts(int page,int pageSize) ;
	
	public List<Product> findProducts(int[] categoryId,
			                          String name,
			                          String descr,
			                          double lowNormalPrice,
			                          double highNormalPrice,
			                          double lowMemberPrice,
			                          double highMemberPrice,
			                          Date StartDate,
			                          Date endDate) ;
	
	public List<Product> findPriducts(String name ) ;
	
	public List<Product> findProducts(String name ) ;
	
	public boolean deleteProductByCategoryId(int categoryId) ;
	
	public boolean deleteProductsById(int[] idArray) ;
	
	public boolean updateProduct(Product p) ;
}
